03603c40c6db72f7813bec5819e5cf322ac0400a,ij/gui/Plot.java,Plot,setLimits,#number#number#number#number#,195

Before Change


		this.xMin = ((flags&X_LOG_NUMBERS)!=0) ? Math.log10(xMin) : xMin;
		this.xMax = ((flags&X_LOG_NUMBERS)!=0) ? Math.log10(xMax) : xMax;
		this.yMin = ((flags&Y_LOG_NUMBERS)!=0) ? Math.log10(yMin) : yMin;
		this.yMax = ((flags&Y_LOG_NUMBERS)!=0) ? Math.log10(yMax) : yMax;
		fixedYScale = true;
		if (initialized) {
			ip.setColor(Color.white);

After Change


	}

	/** Sets the x-axis and y-axis range. */
	public void setLimits(double xMin, double xMax, double yMin, double yMax) {
		if ((flags&X_LOG_NUMBERS)!=0) {
			xMin = Math.log10(xMin);
			xMax = Math.log10(xMax);
		}
		if ((flags&Y_LOG_NUMBERS)!=0) {
			yMin = Math.log10(yMin);
			yMax = Math.log10(yMax);
		}
		if (!Double.isNaN(xMin)) this.xMin = xMin;	//ignore invalid ranges, esp in log scale
		if (!Double.isNaN(xMax)) this.xMax = xMax;
		if (!Double.isNaN(yMin)) this.yMin = yMin;
		if (!Double.isNaN(yMax)) this.yMax = yMax;
		fixedYScale = true;
		if (initialized) {
			ip.setColor(Color.white);